package com.scnu.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.scnu.common.exception.BadRequestException;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ArticleType {
    PROJECT(1,"PROJECT","课题"),
    NEWS(2, "NEWS","新闻"),
    MOMENT(3, "MOMENT","动态"),
    ACTIVITY(4, "ACTIVITY","活动"),
    ANNOUNCEMENT(5, "ANNOUNCEMENT","公告"),
    CHANNEL_POST(6, "CHANNEL_POST","频道帖子"),
    COMMENT(101, "COMMENT","评论"),
    COMMENT_REPLY(102, "COMMENT_REPLY","评论回复")
    ;
    @EnumValue
    final Integer value;
    @JsonValue
    final String jsonValue;
    final String desc;


}